var router = require('koa-router')();
/*控制层*/
var controller = require('../../src/controllers/wxOauth2');

/*用code获取access_token*/
router.post('/getWXAccessTokenByCode', controller.getWXAccessTokenByCode);
/*刷新access_token*/
router.post('/updataWXAccessToken', controller.updataWXAccessToken);
/*获取access_token*/
router.post('/getWXAccessToken', controller.getWXAccessToken);
/*用access_token获取ticket*/
router.post('/getWXJsapi_ticket', controller.getWXJsapi_ticket);
/*微信签名*/
router.post('/getWXAutograph', controller.getWXAutograph);
/*微信统一下单*/
router.post('/unifiedorder', controller.unifiedorder);
/*微信公众号支付*/
router.post('/payment', controller.payment);


module.exports = router
